package com.bytz.modules.cms.order.model;

import com.bytz.common.aspect.annotation.Dict;
import io.swagger.annotations.ApiModelProperty;
import lombok.EqualsAndHashCode;
import lombok.Getter;
import lombok.Setter;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Getter
@Setter
@EqualsAndHashCode
public class OrderPayDetailModel {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键")
    private String id;

    @ApiModelProperty(value = "付款方式（1-汇票；2-银联）")
    @Dict(dicCode = "mall_order_pay_way")
    private String payWay;

    @ApiModelProperty(value = "交易单号")
    private String transactionNumber;

    @ApiModelProperty(value = "付款源")
    private String paySource;

    @ApiModelProperty(value = "交易产品信息")
    private String commodityMsg;

    @ApiModelProperty(value = "支付金额")
    private BigDecimal payAmount;

    @ApiModelProperty(value = "商户交易日期", notes = "格式为：yyyyMMDD")
    private String tranDate;

    @ApiModelProperty(value = "状态")
    @Dict(dicCode = "mall_order_pay_status")
    private String status;

    @ApiModelProperty(value = "创建时间")
    private LocalDateTime createTime;

    @ApiModelProperty(value = "是否能继续支付")
    private Boolean canContinuePay;

    @ApiModelProperty(value = "是否能查询支付结果")
    private Boolean canQueryPay;

    @ApiModelProperty(value = "超时时间", notes = "格式为 yyyy-MM-DD HH:mm:ss")
    private LocalDateTime expirationTime;
}
